package test.ttry;

import y_ut.dbtools.imp.DBDataImport;
import y_ut.dbtools.imp.ExpCsvZipReader;

public class test3 {

	
	
	public static void main(String s[]){
		ExpCsvZipReader eczr = new ExpCsvZipReader("C:\\Users\\youxz\\Desktop\\tttt.zip");
		
		//DBDataImport imp = new DBDataImport("oracle.jdbc.driver.OracleDriver", "jdbc:oracle:thin:@127.0.0.1:1521:WEBOFFICEDB", "weboffice", "123456");
		DBDataImport imp = new DBDataImport("oracle.jdbc.driver.OracleDriver", "jdbc:oracle:thin:@127.0.0.1:1521:BTOSDB", "btos", "123456");
		imp.Import(eczr);
		
	/*	eczr.open();
		while(eczr.hasNextTable()){
			String tablename = eczr.nextTable();
			System.out.println(tablename);
			trac(eczr.getColNames());
			String []row = null;{
				while((row = eczr.getNextRowData())!=null){
					trac(row);
				}
			}
			
		}
		
		eczr.close();*/
	}
	
	public static void trac(Object [] obj){
		for (int i = 0; i < obj.length; i++) {
			System.out.print(obj[i]);
			System.out.print("\t");
		}
		System.out.println();
	}
	
}
